package com.kingland.hanshilong.service;

import com.kingland.hanshilong.mapper.UserModelMapper;
import com.kingland.hanshilong.model.UserModel;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    public UserModelMapper userModelMapper;

    public UserServiceImpl(UserModelMapper userModelMapper){
        this.userModelMapper=userModelMapper;
    }

    @Override
    public UserModel addUser(UserModel userModel){
        this.userModelMapper.insert(userModel);
        return userModel;
    }
}
